how to define a function in cmake. There are any references about how to define a function in cmake in here. you can look below.